package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.function.Consumer;

@Mapper
public interface CustomerDao {
    List<Supplier> listPage(@Param("offset") int offset, @Param("pageSize") int pageSize, @Param("customerName") String customerName);

    Integer countInteger();

    void update(Customer consumer);

    void save(Customer consumer);

    void delete(@Param("ids") Integer[] ids);
}
